/*
 * Sound.h
 *
 *  Created on: 07/03/2013
 *      Author: herbert
 */

#ifndef SOUN_D_H_
#define SOUN_D_H_

#include "core/GameComponent.h"
#include "SDL/SDL_mixer.h"
#include <string>

using namespace eats_core;
using namespace std;

class Sound_ : public GameComponent
{

private:

	Mix_Music * music;
	Mix_Chunk * effect;

	string soundLocation;

	bool playLikeAMusic;

public:

	Sound_(string _song_location, bool isMusic );
	virtual ~Sound_();

	bool setUp();
	bool tearDown();

	bool Load_Sound();
	void Close_Sound();
	void Play_Sound();

};
#endif /* SOUND_H_ */
